public class test {
    public static void main(String[] args) {
        Linkedlist list = new Linkedlist();
        list.addFirst(1);
        list.addFirst(2);
        list.addFirst(3);
        list.addFirst(4);
        list.addFirst(5);
        list.display();
        list.add(3,2);
        list.display();
        list.removeAllKey(3);
        System.out.println(list.contains(3));
        list.display();
        System.out.println(list.tail());
        list.clear();
        list.display();
    }
}
